package com.zx.sys.cms.entity;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 *
 *
 * @author LiYe
 * @email sunlightcs@gmail.com
 * @date 2020-03-09 16:15:28
 */
@Data
@TableName("cms_content")
public class CmsContentEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 *
	 */
	@TableId
	private Long id;
	/**
	 *
	 */
	private String name;
	/**
	 *
	 */
	private String description;
	/**
	 * 栏目ID
	 */
	private Long channelId;
	/**
	 * 固顶级别
	 */
	private Integer topLevel;
	/**
	 * 标题图
	 */
	private String picture;
	/**
	 * 图片集 [{"url":"/ffaf/fdsa/fdaa.jpg","title":"家有萌宝"},{"url":"/ffaf/fdsa/fdaa.jpg","title":"家有萌宝"}]
	 */
	private String pictures;
	/**
	 * 视频
	 */
	private String media;
	/**
	 * 同栏目 类型一样   1图文类 2 图片类 3视频类
	 */
	private Integer type;
	/**
	 * 状态(0:末审核;1已审核 2末通过)
	 */
	private Integer status;
	/**
	 * 审核说明
	 */
	private String note;
	/**
	 * 内容
	 */
	private String content;
	/**
	 * 点赞数
	 */
	private Integer upsCount;
	/**
	 *
	 */
	private Long creator;
	/**
	 *
	 */
	private Date createTime;
	/**
	 *
	 */
	private Long updater;
	/**
	 *
	 */
	private Date updateTime;

	private String relationIds;

	@TableField(exist = false)
	private String channelName;

	@TableField(exist = false)
	private String creatorName;

	@TableField(exist = false)
	private JSONArray picturesArray;

}
